package com.example.demo2.mapper;

import com.example.demo2.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {

    User findByUserId(Integer userId, String userPwd);

    int insert_user(User user);
    int countByUserId(String userId);
    List<User> findByUserId_A(Integer userId);

    boolean upDateUserPwd(Integer userId ,String userPwd);

    boolean upDateUserInformation(Integer userId ,String userName,String userEmail,String userBrief);

    List<User> forgetPwd(Integer userId,String userName,String userQuestion);


}
